//引入封装的请求服务
import { POST, UPLOAD } from '@/services/request'

//导出接口
const base = {
    login(data = {})
    {
      return POST({
        url: '/business/login',
        params: data
      })
    },
    register(data = {})
    {
      return POST({
        url: '/business/register',
        params: data
      })
    },
    checklogin(data ={}){
      return POST({
        url: '/business/checklogin',
        params: data
      })
    },
    profile(data = {})
    {
      return UPLOAD({
        url: '/business/profile',
        params: data
      })
    },
    record(data = {})
    {
      return UPLOAD({
        url: '/business/record',
        params: data
      })
    },
}

export default base